package com.myjob.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myjob.entity.HuntingStatus;
import com.myjob.response.Result;
import org.springframework.stereotype.Service;

/**
 * @author Chen Yuan
 * @create 2021-01-27  17:08
 */
@Service
public interface HuntingStatusService extends IService<HuntingStatus> {
	/**
	 * 分页查询所有状态信息
	 * @param currentPage 当前页
	 * @param pageSize 页大小
	 * @param userName 用户姓名
	 * @param hrName hr 姓名
	 * @return
	 */
	public Result selectHuntingStatus(Integer currentPage, Integer pageSize, String userName, String hrName, String userId, String searchValue);

	/**
	 * 查询一条记录的所有信息
	 * @param huntingStatus 状态信息
	 * @return
	 */
	public Result selectOneHunting(HuntingStatus huntingStatus);

	/**
	 * 新增
	 * @param huntingStatus 状态信息
	 * @return
	 */
	public int addHunting(HuntingStatus huntingStatus);

	/**
	 * 修改状态
	 * @param huntingStatus 状态信息
	 * @return
	 */
	public int updateHuntingStatus(HuntingStatus huntingStatus);

	/**
	 * 删除
	 */
	public int deleteHunting(String HuntingId, Integer deleted);

	/**
	 * 查询所有申请者的基本信息
	 * @param currentPage
	 * @param pageSize
	 * @param searchValue
	 * @param userId
	 * @return
	 */
	public Result selectHuntingUsers(Integer currentPage, Integer pageSize, String searchValue, String userId);

	/**
	 * 通过userId、hrId、companyId 查询是否已投递过简历
	 * @param userId
	 * @param hrId
	 * @param companyId
	 * @return
	 */
	public Result selectHuntingByIds(String userId, String hrId, String companyId, String jobId);

	public Result countHunting();

}
